import pandas
results_dump_file = 'results.txt'
dicts = []
with open(results_dump_file, 'r') as fr:
    temp_results = eval(fr.read())
    for id,(birthDate,birthPlace, gender, homeCity, homeState, religion) in temp_results.items():
        dicts.append({
            'id':id,
            'birthDate':birthDate,
            'birthPl':birthPlace,
            'gender': gender,
            'homeCity': homeCity,
            'homeState': homeState,
            'religion': religion
        })

    df = pandas.DataFrame(dicts)
    df.to_excel('results.xlsx')
    print(f'saved to excel')